package org.oneblog.bean;

import java.io.Serializable;

public class ImageConfiger implements Serializable {

    private static final long serialVersionUID = -7603490485960446938L;
    
    private Integer targetWidth;//图片的目标宽度，高度等比缩放

    private Double x;
    
    private Double y;
    
    private Double height;
    
    private Double width;
    
    private Double rotate = 0D;
    
    public boolean hasCut() {
        return x != null && y != null && height != null && width != null
                && width > 0 && height > 0;
    }
    
    public ImageConfiger() {
        
    }

    public Double getX() {
        return x;
    }

    public void setX(Double x) {
        this.x = x;
    }

    public Double getY() {
        return y;
    }

    public void setY(Double y) {
        this.y = y;
    }

    public Double getHeight() {
        return height;
    }

    public void setHeight(Double height) {
        this.height = height;
    }

    public Double getWidth() {
        return width;
    }

    public void setWidth(Double width) {
        this.width = width;
    }

    public Double getRotate() {
        return rotate;
    }

    public void setRotate(Double rotate) {
        this.rotate = rotate;
    }

    public Integer getTargetWidth() {
        return targetWidth;
    }

    public void setTargetWidth(Integer targetWidth) {
        this.targetWidth = targetWidth;
    }
    
}
